﻿using System;
using System.Collections.Generic;
using System.Text;
using CharacterTrailLibrary.Impl;
using CharacterTrailLibrary.Interface;

namespace CharacterTrailLibrary.Factory
{
    public class InstanceFactory
    {
        public static IBomHeaderPersist GetBomHeaderPersis()
        {
            return new BomHeaderPersist();
        }

        public static IExcelImportor GetExcelImportor()
        {
            return new ExcelImportorNewDecorator(new ExcelImportorNew());
        }

        public static IUserLoader GetUserLoader()
        {
            return new UserLoader();
        }

        public static IStaticDataQuerier GetStaticDataQuerier()
        {
            return new StaticDataQuerier();
        }

        public static IProductPersist GetProductPersist()
        {
            return new ProductPersist();
        }

        public static IProcedurePersist GetProcedurePersist()
        {
            return new ProcedurePersistImpl();
        }

        public static IBom GetBom()
        {
            return new BomImpl();
        }

        public static IBarCodeTracking GetBarCodeTracking()
        {
            return new BarCodeTracking();
        }

        public static IRepair GetRepairImpl()
        {
            return new RepairImpl();
        }
    }
}
